watchdog: bcm2835: Support setting reboot partition
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 7 Oct 2016 14:50:59 +0000 (16:50 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:07 +0000 (17:28 +0000)
commite93660dbcd9646a36382448b92180e0ec57e16d1
tree0d20ce0e3b2c39433cb3b48ad9e5d15469b3df7a
parentf79b537bf35dd9e26dff31f613f513da8670949d
watchdog: bcm2835: Support setting reboot partition

The Raspberry Pi firmware looks at the RSTS register to know which
partition to boot from. The reboot syscall command
LINUX_REBOOT_CMD_RESTART2 supports passing in a string argument.

Add support for passing in a partition number 0..63 to boot from.
Partition 63 is a special partiton indicating halt.
If the partition doesn't exist, the firmware falls back to partition 0.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/watchdog/bcm2835_wdt.c